package com.mind.invoice.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mind.invoice.mapper.AjFileLibraryMapper;
import com.mind.invoice.domain.AjFileLibrary;
import com.mind.invoice.service.IAjFileLibraryService;

/**
 * 文件库Service业务层处理
 * 
 * @author xp
 * @date 2025-05-08
 */
@Service
public class AjFileLibraryServiceImpl implements IAjFileLibraryService 
{
    @Autowired
    private AjFileLibraryMapper ajFileLibraryMapper;

    /**
     * 查询文件库
     * 
     * @param id 文件库主键
     * @return 文件库
     */
    @Override
    public AjFileLibrary selectAjFileLibraryById(Long id)
    {
        return ajFileLibraryMapper.selectAjFileLibraryById(id);
    }

    /**
     * 查询文件库列表
     * 
     * @param ajFileLibrary 文件库
     * @return 文件库
     */
    @Override
    public List<AjFileLibrary> selectAjFileLibraryList(AjFileLibrary ajFileLibrary)
    {
        return ajFileLibraryMapper.selectAjFileLibraryList(ajFileLibrary);
    }

    /**
     * 新增文件库
     * 
     * @param ajFileLibrary 文件库
     * @return 结果
     */
    @Override
    public int insertAjFileLibrary(AjFileLibrary ajFileLibrary)
    {
        return ajFileLibraryMapper.insertAjFileLibrary(ajFileLibrary);
    }

    /**
     * 修改文件库
     * 
     * @param ajFileLibrary 文件库
     * @return 结果
     */
    @Override
    public int updateAjFileLibrary(AjFileLibrary ajFileLibrary)
    {
        return ajFileLibraryMapper.updateAjFileLibrary(ajFileLibrary);
    }

    /**
     * 批量删除文件库
     * 
     * @param ids 需要删除的文件库主键
     * @return 结果
     */
    @Override
    public int deleteAjFileLibraryByIds(Long[] ids)
    {
        return ajFileLibraryMapper.deleteAjFileLibraryByIds(ids);
    }

    /**
     * 删除文件库信息
     * 
     * @param id 文件库主键
     * @return 结果
     */
    @Override
    public int deleteAjFileLibraryById(Long id)
    {
        return ajFileLibraryMapper.deleteAjFileLibraryById(id);
    }
}
